<?php

namespace App\Models;
class Product extends Base
{

    protected $table = 'products';

    public function category() {
        return $this->belongsTo(Category::class, 'category_id');
    }

    public function parent_category() {
        return $this->belongsTo(Category::class, 'parent_category_id');
    }

}
